package com.shengqin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.shengqin.config.handlers.TestResultListTypeHandler;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

@Data
@TableName(value = "t_summary_archive", autoResultMap = true)
public class SummaryArchive {
    @TableId(type = IdType.AUTO)
    private Long id;
    private Integer planId;
    private String planName;
    private String sex;
    private String studyCode;
    private String address;
    private LocalDate birthday;
    private String nation;
    private String name;
    private Integer gradeId;
    private String classesName;
    private Integer schoolId;
    private BigDecimal totalScore;
    private String totalLevel;
    private Integer testPrjTotalCount;
    private Integer testEndPrjCount;
    private Boolean testEndFlag;
    @TableField(value = "test_result_list", typeHandler = TestResultListTypeHandler.class)
    private List<TestResult> testResultList;
    private String schoolName;
    private String createBy;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    private String updateBy;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
    private String schoolYear;
    @TableField(exist = false)
    private Integer downloadGradeId;
    @TableField(exist = false)
    private String gradeName;

    private String tempUniqKey;
}
